<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->hostInfo.'/'.Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->hostInfo.'/'.Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->hostInfo.'/'.Yii::app()->getTheme()->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->hostInfo.'/'.Yii::app()->getTheme()->baseUrl; ?>/css/general.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->hostInfo.'/'.Yii::app()->request->baseUrl; ?>/css/form.css" />

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<div class="layout">
    <div class="sidebar">
        <img src="<?php echo Yii::app()->request->hostInfo.'/'.Yii::app()->getTheme()->baseUrl?>/images/we_have_kittens.png" alt="" />
        <div class="mail">
            e-mail:<br />
            coonochka@gmail.com
        </div>
        <img src="<?php echo Yii::app()->request->hostInfo.'/'.Yii::app()->getTheme()->baseUrl?>/images/FIFE.png" alt=""  class="resize"/>
        <img src="<?php echo Yii::app()->request->hostInfo.'/'.Yii::app()->getTheme()->baseUrl?>/images/fr.png" alt="" class="resize" />
    </div>
    <div class="content">

        <div id="header">
            <div id="logo"><?php //echo CHtml::encode(Yii::app()->name); ?></div>
        </div><!-- header -->

        <div id="mainmenu">
            <?php $this->widget('zii.widgets.CMenu',array(
            'items'=>array(
                array('label'=>Yii::t('menu','Home'), 'url'=>array('/')),
                array('label'=>Yii::t('menu','News'), 'url'=>array('/site/index')),
                array('label'=>Yii::t('menu','Spados'), 'url'=>array('/cat/spado')),
                array('label'=>Yii::t('menu','Cats males'), 'url'=>array('/cat/male')),
                array('label'=>Yii::t('menu','Cats females'), 'url'=>array('/cat/female')),
                array('label'=>Yii::t('menu','Kittens'), 'url'=>array('/cat/kittens')),
                array('label'=>Yii::t('menu','Gallery'), 'url'=>array('/gallery')),
                array('label'=>Yii::t('menu','About'), 'url'=>array('/site/page', 'view'=>'about')),
                array('label'=>Yii::t('menu','Contact'), 'url'=>array('/site/contact')),
                array('label'=>Yii::t('menu','Logout') . '('.Yii::app()->user->name.')', 'url'=>array('/site/logout'),
                    'visible'=>!Yii::app()->user->getIsGuest()),
                array('label'=>Yii::t('menu','Cats admin'), 'url'=>array('cat/admin'),
                    'visible'=>Yii::app()->user->getIsAdmin()),

            ),
        )); ?>
        </div><!-- mainmenu -->
        <?php if(isset($this->breadcrumbs)):?>
            <?php $this->widget('zii.widgets.CBreadcrumbs', array(
            'links'=>$this->breadcrumbs,
        )); ?><!-- breadcrumbs -->
        <?php endif?>

        <?php echo $content; ?>
    </div>
</div>




<div class="clear"></div>

<div id="footer">
    <div class="footer_text">
      <span><?php echo Yii::t('main', 'Maine Coons - a giant with a creamy character!')?></span>
    </div>
    Copyright &copy; <?php echo date('Y'); ?> by lamer all-night-long-develop inc.<br/>
    All Rights Reserved.<br/>
</div><!-- footer -->



</body>
</html>
